package com.example.patentback.service;

import com.example.patentback.entity.RegisterDto;
import com.example.patentback.entity.SysRole;
import com.example.patentback.entity.SysUser;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

public interface SysUserService {

    SysUser getByUsername(String username);

    String getUserAuthorityInfo(Long userId);

    void clearUserAuthorityInfo(Long userId);

    void clearUserAuthorityInfoByRoleId(Long roleId);

    void clearUserAuthorityInfoByMenuId(Long menuId);

    SysUser selectById(Long id);

    List<SysUser> selectByUsername(String username, int current, int size);

    SysUser saveSysUser(SysUser sysUser);

    SysUser updateUser(SysUser sysUser);

    int deleteUser(Long[] ids);

    int resetPassword(Long userId);

    SysUser insert(RegisterDto registerDto);
}
